<?php
if (isset($_SESSION['lang']))
    require_once "./language_files/footer_" . $_SESSION['lang'] . ".php";
else
    require_once "./language_files/footer_en.php";
?>
<?php include "jquery.php" ?>

<script type="text/javascript">
    //<![CDATA[
    $(document).ready(function() {
        $('#ffo #a').click(function(e) {
            e.preventDefault();
            $("#tabs").tabs({ selected: 3 });
            $("#cover").fadeIn('slow');
            $("#warning").fadeIn('slow');
            $('#aboutus').show();
        });
        $('#ffo #p').click(function(e) {
            e.preventDefault();
            $("#tabs").tabs({ selected: 1 });
            $("#cover").fadeIn('slow');
            $("#warning").fadeIn('slow');
            $('#aboutus').show();
        });
        $('#ffo #t').click(function(e) {
            e.preventDefault();
            $("#tabs").tabs({ selected: 2 });
            $("#cover").fadeIn('slow');
            $("#warning").fadeIn('slow');
            $('#aboutus').show();
        });
    });
    //]]>
    
</script>

<body id="body_id">
    <div id="ffo"> <div class="footer-index">  <a  id="a" href="#"><?php echo $lang['about']; ?></a> |
            <a  id="t" href="#"><?php echo $lang['terms']; ?></a> |
            <a  id="p" href="#"><?php echo $lang['privacy']; ?></a></div></div>
    <div id="cover">
    </div>
     <div id="warning">
            <div style="height: 20px; width: 100%;"><button class="close" onclick="javascript: top.window.location='index.php';">&nbsp;</button></div>
            <div id="aboutus">
                <div id="tabs">
                    <ul>
                        <li><a href="#tabs-1">About us</a></li>
                        <li><a href="#tabs-2">Privacy policy</a></li>
                        <li><a href="#tabs-3">Terms of service</a></li>
                    </ul>
                    <div id="tabs-1">
                        <?php
                        if (isset($_SESSION['lang']))
                            require_once "./language_files/aboutUs_" . $_SESSION['lang'] . ".php";
                        else
                            require_once "./language_files/aboutUs_en.php";
                        ?>
                        <h2><?php echo $lang['about_us_title']; ?></h2>
                        <p>
                            <strong><?php echo $lang['about_us_subtitle']; ?></strong>
                            <?php echo $lang['about_us_text']; ?>
                        </p>

                    </div>
                    <div id="tabs-2">
                        <?php
                        if (isset($_SESSION['lang']))
                            require_once "./language_files/privacyPolicy_" . $_SESSION['lang'] . ".php";
                        else
                            require_once "./language_files/privacyPolicy_en.php";
                        ?>
                        <h2>
                            <?php echo $lang['privacy_title']; ?>
                        </h2>

                        <h3>
                            <?php echo $lang['privacy_terms']; ?>
                        </h3>

                        <p>
                            <?php echo $lang['privacy_terms_text']; ?>
                        </p>

                        <h3>
                            <?php echo $lang['privacy_license']; ?>
                        </h3>
                        <?php echo $lang['privacy_license_text']; ?>
                    </div>
                    <div id="tabs-3">
                        <?php
                        if (isset($_SESSION['lang']))
                            require_once './language_files/termsOfService_' . $_SESSION['lang'] . ".php";
                        else
                            require_once './language_files/termsOfService_en.php';
                        ?>
                        <h2><?php echo $lang['terms_title']; ?></h2>
                        <p>
                            <strong><?php echo $lang['terms_subtitle']; ?></strong>
                            <?php echo $lang['terms_text']; ?>
                        </p>
                    </div>
                </div>
            </div>
        </div>
</body>